package com.meritdata.cloud.data.service.development.model; /***********************************************************************
 * Module:  TD_DATA_API_PARAMETER.java
 * Author:  Lenovo
 * Purpose: Defines the Class TD_DATA_API_PARAMETER
 ***********************************************************************/

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;
/** 服务接收参数表 */
@Entity
@Table(name = "TD_DATA_API_PARAMETER")
public class TdDataApiParameter {
	/** ID:ID */
	@Id
	@GeneratedValue
	private Long id;
	/** 服务ID:API_ID */
	@Column(name = "API_ID")
	private Long apiId;
	/** 参数名称:NAME*/
	@Column(name = "NAME")
	private String name;
	/** 参数编码:CODE */
	@Column(name = "CODE")
	private String code;
	/**
	 * 0:非必填 1:必填 如果为非必填，必须设置默认值
	 *
	 * 是否必填:REQUIRED
	 */
	@Column(name = "REQUIRED")
	private int required;
	/**
	 * 数值，字符串，日期(yyyy-MM-dd)，时间(yyyy-MM-dd HH:mm:ss)
	 *
	 * 参数类型:TYPE
	 */
	@Column(name = "TYPE")
	private String type;
	/** 参数默认值:DEFAULT_VAL */
	@Column(name = "DEFAULT_VAL")
	private String defaultVal;
	/** 创建时间:CREATE_TIME */
	@Column(name = "CREATE_TIME")
	private Date createTime;
	/** 修改时间:UPDATE_TIME */
	@Column(name = "UPDATE_TIME")
	private Date updateTime;
	/** 创建人ID:CREATOR */
	@Column(name = "CREATOR")
	private Long creator;
	/** 修改人ID:REVISER_ID */
	@Column(name = "REVISER_ID")
	private Long reviserId;

	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getApiId() {
		return apiId;
	}
	public void setApiId(Long apiId) {
		this.apiId = apiId;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCode() {
		return code;
	}
	public int getRequired() {
		return required;
	}
	public void setRequired(int required) {
		this.required = required;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDefaultVal() {
		return defaultVal;
	}
	public void setDefaultVal(String defaultVal) {
		this.defaultVal = defaultVal;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Long getCreator() {
		return creator;
	}
	public void setCreator(Long creator) {
		this.creator = creator;
	}
	public Long getReviserId() {
		return reviserId;
	}
	public void setReviserId(Long reviserId) {
		this.reviserId = reviserId;
	}
}